package com.edu;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

// @SpringBootApplication 注解已包含自动扫描当前包及子包的功能
@SpringBootApplication
// 扫描 Mapper 接口所在的包（替换为你的实际 Mapper 包路径）
@MapperScan("com.edu.mapper")
public class Mybatis01Application {
    public static void main(String[] args) {
        SpringApplication.run(Mybatis01Application.class, args);
    }
}




